<template>
  <div class="b">
    <button @click="emitb">派发</button>
    AAAA
  </div>
</template>
<script setup lang='ts'>
  import Bus from '../../utils/Ts/Bus'
  let flag = false
// const emit = defineEmits(['on-click']) 
const emitb = ()=>{
  flag = !flag
  // emit('on-click',flag)
   Bus.emit('on-click',flag)
}
</script>
<style scoped lang='less'>
.b {
  width: 200px;
  height: 200px;
  color: #fff;
  background: blue;
}
</style>